import request from '@/utils/request'

// 查询所有
export function selectAll() {
  return request({
    url: '/examineneck/findAll',
    method: 'get'
  })
}
// 根据状态查询
export function selectByStatus(status) {
  return request({
    url: `/examineneck/findByStatus/${status}`,
    method: 'get'
  })
}

// 修改状态
export function examine(examineneckId, examineneckPet, examineneckStatus) {
  console.log({ examineneckId, examineneckPet, examineneckStatus })
  return request({
    url: `/examineneck/updateNeck`,
    method: 'put',
    data: { examineneckId, examineneckPet, examineneckStatus }
  })
}
